package externalsortinginjava;

import com.google.code.externalsorting.ExternalSort;
import java.io.File;
import java.io.IOException;

public class TestExternalSort {

    public static void main(String[] args) {

        String abd = "124";

        System.out.println(String.format(abd, "333333"));
        String inputfile = "";
        String outputfile = "";
        //... inputfile: input file name
//... outputfile: output file name
// next command sorts the lines from inputfile to outputfile
        try {
            ExternalSort.mergeSortedFiles(ExternalSort.sortInBatch(new File(inputfile)), new File(outputfile));
        } catch (IOException e) {
            e.printStackTrace();
        }
// you can also provide a custom string comparator, see API
    }
}
